package com.dudu.service.impl;

import java.util.List;

import com.dudu.bean.RemindInfo;
import com.dudu.dao.RemindDao;
import com.dudu.service.IRemindService;

import core.CoreDao;
import core.CoreDaoInvoke;

public class RemindServiceImpl implements IRemindService {
    private CoreDao coreDao = CoreDaoInvoke.getInstance();
    private RemindDao remindDao=new RemindDao();
    /**
     * 查询总条数
     * 
     * @param paramSql
     * @return
     */
    public int getTotalAcount(String paramSql) {
	return remindDao.getTotalAcount(coreDao, paramSql);
    }
    /**
     * 查询提醒服务记录分页
     * 
     * @param paramSql
     * @param pageSql
     * @return
     */
    public List<RemindInfo> queryAll(String paramSql, String pageSql) {
	List<RemindInfo> list = remindDao.queryAll(coreDao, paramSql, pageSql);
	return list;
    }
    /**
     * 恢复code
     * @param code
     * @return
     */
    public int updateRemind(String code){
	//return remindDao.updateCodeTable(coreDao, code, "1");
	return remindDao.deleteCodeTable(coreDao, code);
    }
}
